import request from "@/utils/request";

//获取首页帖子数据
export const getHomeData = () => {
    return request.get('/post')
  }

  //获取搜索帖子数据
  export const getSearchDate=(keyword)=>{
    return request(`/post/find?keyword=${keyword}`)
  }